﻿@using KPIS.GERP.Models;
@using KPIS.GERP.Models.ICM
@model KPIS.GERP.Models.ICM.Warehouse


@if (ViewContext.RouteData.Values["action"].ToString().ToLower() == "edit")
{
@Html.HiddenFor(model => model.WhId)
}
@Html.HiddenFor(model => model.RecordStatus)
@Html.HiddenFor(model => model.CreatedBy)
@Html.HiddenFor(model => model.CreatedWhen)
@Html.HiddenFor(model => model.UpdatedBy)
@Html.HiddenFor(model => model.UpdatedWhen)

<div class="widget-box">
    <div class="widget-header">
        <h4>รายละเอียดคลังพัสดุ</h4>
    </div>
    <div class="widget-body">
        <div class="widget-body-inner">
            <div class="widget-main">
                <div class="control-group">
                
                    <div class="control-label">
                        ประเภท:
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.ScopeId, new KPIS.GERP.WEB.GIMS.IcmMasLookUpService.IcmMasLookUpServiceClient().MasLookUpSelectList(KPIS.GERP.Models.ICM.IcmMasLookUpType.LookUpType.Scope))
                    </div>
                </div>
                
               <div class="control-group">
                <div class="control-label">
                        ชื่อ:
                </div>
                   <div class="controls">
                       @Html.EditorFor(model => model.Name)
                       @Html.ValidationMessageFor(model => model.Name)
                   </div>
               </div>
                
                <div class="control-group">
                    <div class="control-label">
                        หน่วยงานที่รับผิดชอบ:
                    </div>
                    <div class="controls">
                        @Html.DropDownListFor(m => m.JobSiteId, new KPIS.GERP.WEB.GIMS.JobsiteService.JobsiteServiceClient().LoadInternalJobSiteSelectList(null, false, 3))
                    </div>
                </div>
                
                <div class="control-group">
                   <div class="control-label">
                        รายละเอียด :
                    </div>
                    <div class="controls">
                       @Html.EditorFor(model => model.Description, "TextArea")
                    </div>
                    </div>
                </div>
              </div>
            </div>
        </div>

